package com.board.client;

import com.board.client.dto.FoodDto;
import com.board.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "board-product-server",path = "/board-product")
public interface FoodServiceClient {

    //根据ids查询菜品信息
    @PostMapping("/food/findFoodByIds")
    public Result<List<FoodDto>> findFoodByIds(@RequestBody List<Integer> foodIds);

}
